package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class HelloController {

//	@RequestMapping("/test")
//	public @ResponseBody String index() {
//		return "Hello world from Spring Boot!";
//	}
	
	@RequestMapping("/")
	public String index(){
		return "index";
	}
	
	@RequestMapping("/hello")
	public String hello(){
		return "hello";
	}
}